import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
	{
		path: '/',
		redirect: {name: 'iview'}
	},
    {
		path: '/home',
		name: 'home',
		component: s => require.ensure([], () => s(require('./components/home/view')), 'home'),
		children: [
			{
				path: 'iview',
				name: 'iview',
				component: s => require.ensure([], () => s(require('./components/home/iview')), 'home'),
				children: [
					{
						path: 'musicCol',
						name: 'musicCol',
						component: s => require.ensure([], () => s(require('./components/home/musicCol/musicCol')), 'home')
					}
				]
			}
		]
    }
  ]
});
